package io.renren.modules.api.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.api.dao.YhEvaluateDriverDao;
import io.renren.modules.api.entity.YhEvaluateDriverEntity;
import io.renren.modules.api.service.YhEvaluateDriverService;



@Service("yhEvaluateDriverService")
public class YhEvaluateDriverServiceImpl implements YhEvaluateDriverService {
	@Autowired
	private YhEvaluateDriverDao yhEvaluateDriverDao;
	
	@Override
	public YhEvaluateDriverEntity queryObject(Long id){
		return yhEvaluateDriverDao.queryObject(id);
	}
	
	@Override
	public List<YhEvaluateDriverEntity> queryList(Map<String, Object> map){
		return yhEvaluateDriverDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return yhEvaluateDriverDao.queryTotal(map);
	}
	
	@Override
	public void save(YhEvaluateDriverEntity yhEvaluateDriver){
		yhEvaluateDriverDao.save(yhEvaluateDriver);
	}
	
	@Override
	public void update(YhEvaluateDriverEntity yhEvaluateDriver){
		yhEvaluateDriverDao.update(yhEvaluateDriver);
	}
	
	@Override
	public void delete(Long id){
		yhEvaluateDriverDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		yhEvaluateDriverDao.deleteBatch(ids);
	}

	@Override
	public List<YhEvaluateDriverEntity> queryEvaluatesByDriverId(Long driverId) {
		return yhEvaluateDriverDao.queryEvaluatesByDriverId(driverId);
	}

}
